package com.design.builder;

/**
 * @author leali
 * @title: ActorBuilder
 * @projectName design
 * @description: 角色建造器：抽象建造者
 * @date 2022/1/2 21:49
 */
abstract  class ActorBuilder {
    protected Actor actor = new Actor();
    public abstract void buildType();
    public abstract void buildSex();
    public abstract void buildFace();
    public abstract void buildCostume();
    public abstract void buildHairstyle();

    /**
     * 工厂方法，返回一个完整的游戏角色对象
     * @return actor
     */
    public Actor createActor() {
        return actor;
    }
}
